package com.augrain.microframework.lock.strategy;

import com.augrain.microframework.lock.exception.LockTimeException;
import com.augrain.microframework.lock.lock.Lock;
import com.augrain.microframework.lock.model.LockInfo;
import org.aspectj.lang.JoinPoint;

/**
 * 锁超时快速失败策略
 *
 * @author biaoy
 * @since 2021/06/10
 // */
public class LockTimeoutFastFailStrategy implements LockTimeoutStrategy {

    @Override
    public void handle(LockInfo lockInfo, Lock lock, JoinPoint joinPoint) {
        throw new LockTimeException("get lock timeout");
    }
}

